﻿namespace BlamanticUI.Components.Forms;

/// <summary>
/// Represents a &lt;input type="number" /> form control.
/// </summary>
public class TextNumber<TValue> : BlamanticInputBase<TValue>
{
    /// <summary>
    /// Overrides to set type of input is 'number'.
    /// </summary>
    protected override string Type => "number";
    /// <summary>
    /// The minimum value to accept for this input.
    /// </summary>
    [Parameter][HtmlAttribute]public double? Min { get; set; }
    /// <summary>
    /// The maximum value to accept for this input.
    /// </summary>
    [Parameter][HtmlAttribute]public double? Max { get; set; }
    /// <summary>
    /// A number that specifies the granularity that the value must adhere to.
    /// </summary>
    [Parameter] [HtmlAttribute] public double? Step { get; set; }
}
